package chapter3.No3_1_等待和通知机制.j生产者_消费者模式实现.demo1;

/**
 * *：一生产一消费：操作值
 * Created by Administrator on 2016/11/19.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        Object lock = new Object();
        P p = new P(lock);
        C c = new C(lock);
        ThreadP threadP = new ThreadP(p);
        ThreadC threadC = new ThreadC(c);
        threadP.start();
        threadC.start();
    }
}
